﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;
namespace DAL
{
    public class sp_order_goodsDAL
    {
        MyShoppingDB_VueEntities context = new MyShoppingDB_VueEntities();

        //获取数据
        public List<sp_order_goods> getall()
        {
            return context.Set<sp_order_goods>().ToList();
        }
        //添加
        public int add(sp_order_goods s)
        {
            context.Set<sp_order_goods>().Add(s);
            return context.SaveChanges();
        }
    }
}
